import request from '@/utils/request'

export function groutList(query) {
  return request({
    url: '/sysm/groupAction/list',
    method: 'get',
    params: query
  })
}

export function grouUpdate(param) {
  return request.post('/sysm/groupAction/saveOrUpdate', JSON.stringify(param))
}

export function groupById(id, platformId = '') {
  return request({
    url: `/sysm/group/permission?groupId=${id}&platformId=${platformId}`,
    method: 'get'
  })
}
